CommonEvent 172
Name = "Colosseum: Scylla Matches"

  999([172])
  Script(["ex_choice_add(\"Scylla Cup\",1,\"v[714] >= 0\",1)"])
  ScriptMore(["ex_choice_add(\"Dancing Scylla Cup\",2,\"v[714] >= 1\",2)"])
  ScriptMore(["ex_choice_add(\"Wriggling Scylla Cup\",3,\"v[714] >= 2\",3)"])
  ScriptMore(["ex_choice_add(\"Eclipse cup\",4,"])
  ScriptMore(["\"v[714] >= 3 and v[1143] >= 25\",0)"])
  ScriptMore(["ex_choice_add(\"Never mind\",5)"])
  Script(["ex_choice_show"])
  ConditionalBranch([1, 9, 0, 1, 0])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["\\n<Official>You are participating in the Scylla Cup!\nIn that case, please proceed to the arena!"])
    ShowText([""])
    ShowText([""])
    ConditionalBranch([1, 1143, 0, 9, 2])
      TransferPlayer([0, 483, 32, 31, 6, 0])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 1143, 0, 10, 1])
      ControlVariables([57, 57, 0, 0, 1200])
      TransferPlayer([0, 200, 32, 31, 6, 0])
      Empty([])

    BranchEnd([])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["\\n<Referee>Team Luka has entered!\nWithout further ado, the first match shall begin at once!!"])
    ShowText([""])
    ShowText([""])
    ControlVariables([702, 702, 0, 0, 1])
    CallCommonEvent([160])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["\\n<Referee>Team Luka has won the first match!\nContinuing on, the second match shall now commence!!"])
    ShowText([""])
    ShowText([""])
    ControlVariables([702, 702, 0, 0, 2])
    CallCommonEvent([160])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["\\n<Referee>Team Luka has won the second match!\nAt last, the finals shall now commence!"])
    ShowText([""])
    ShowText([""])
    ControlVariables([702, 702, 0, 0, 3])
    CallCommonEvent([160])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["\\n<Referee>And the winners of the finals are...Team Luka!!\nLet's all give a round of applause for Team Luka!!"])
    ShowText([""])
    ShowText([""])
    ConditionalBranch([1, 714, 0, 0, 0])
      PlaySE(["RPG::SE(@name=\"mon_fanfale2\", @pitch=100, @volume=100)"])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["You have mastered the Scylla Cup!!"])
      PlaySE(["RPG::SE(@name=\"Item1\", @pitch=100, @volume=80)"])
      ChangeArmor([1384, 0, 0, 1, false])
      ConditionalBranch([8, 549])
        Empty([])

      Else([])
        ControlSwitches([2284, 2284, 0])
        ChangeItems([549, 0, 0, 1])
        Empty([])

      BranchEnd([])
      ControlVariables([714, 714, 0, 0, 1])
      Empty([])

    Else([])
      PlaySE(["RPG::SE(@name=\"Item1\", @pitch=100, @volume=80)"])
      ChangeItems([36, 0, 0, 1])
      ChangeItems([40, 0, 0, 1])
      ChangeItems([44, 0, 0, 1])
      ConditionalBranch([8, 549])
        Empty([])

      Else([])
        ControlSwitches([2284, 2284, 0])
        ChangeItems([549, 0, 0, 1])
        Empty([])

      BranchEnd([])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 1143, 0, 9, 2])
      TransferPlayer([0, 484, 14, 10, 8, 0])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 1143, 0, 10, 1])
      ControlVariables([57, 57, 0, 0, 1199])
      TransferPlayer([0, 199, 14, 10, 8, 0])
      Empty([])

    BranchEnd([])
    Script(["gain_medal(1611)"])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["\\n<Official>Congratulations on winning the Scylla Cup championship!\nAs one would expect of top-notch fighters!"])
    ShowText([""])
    ShowText([""])
    CallCommonEvent([159])
    ExitEventProcessing([])
    Empty([])

  BranchEnd([])
  ConditionalBranch([1, 9, 0, 2, 0])
    ConditionalBranch([1, 1001, 0, 30, 1])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["\\n<Official>You are participating in the Dancing Scylla Cup!\nIn that case, please proceed to the arena!"])
      ShowText([""])
      ShowText([""])
      ConditionalBranch([1, 1143, 0, 9, 2])
        TransferPlayer([0, 483, 32, 31, 6, 0])
        Empty([])

      BranchEnd([])
      ConditionalBranch([1, 1143, 0, 10, 1])
        ControlVariables([57, 57, 0, 0, 1200])
        TransferPlayer([0, 200, 32, 31, 6, 0])
        Empty([])

      BranchEnd([])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["\\n<Referee>Team Luka has entered!\nWithout further ado, the first match shall begin at once!!"])
      ShowText([""])
      ShowText([""])
      ControlVariables([702, 702, 0, 0, 3])
      CallCommonEvent([160])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["\\n<Referee>Team Luka has won the first match!\nContinuing on, the second match shall now commence!!"])
      ShowText([""])
      ShowText([""])
      ControlVariables([702, 702, 0, 0, 4])
      CallCommonEvent([160])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["\\n<Referee>Team Luka has won the second match!\nAt last, the finals shall now commence!"])
      ShowText([""])
      ShowText([""])
      ControlVariables([702, 702, 0, 0, 6])
      CallCommonEvent([160])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["\\n<Referee>And the winners of the finals are...Team Luka!!\nLet's all give a round of applause for Team Luka!!"])
      ShowText([""])
      ShowText([""])
      ConditionalBranch([1, 714, 0, 1, 0])
        PlaySE(["RPG::SE(@name=\"mon_fanfale2\", @pitch=100, @volume=100)"])
        ShowTextAttributes(["", 0, 0, 2])
        ShowText(["You have mastered the Dancing Scylla Cup!!"])
        PlaySE(["RPG::SE(@name=\"Item1\", @pitch=100, @volume=80)"])
        ChangeArmor([1676, 0, 0, 1, false])
        ControlVariables([714, 714, 0, 0, 2])
        Empty([])

      Else([])
        PlaySE(["RPG::SE(@name=\"Item1\", @pitch=100, @volume=80)"])
        ChangeItems([41, 0, 0, 1])
        Empty([])

      BranchEnd([])
      ConditionalBranch([1, 1143, 0, 9, 2])
        TransferPlayer([0, 484, 14, 10, 8, 0])
        Empty([])

      BranchEnd([])
      ConditionalBranch([1, 1143, 0, 10, 1])
        ControlVariables([57, 57, 0, 0, 1199])
        TransferPlayer([0, 199, 14, 10, 8, 0])
        Empty([])

      BranchEnd([])
      Script(["gain_medal(1612)"])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["\\n<Official>Congratulations on winning the Dancing Scylla Cup championship! You're on the verge of becoming unrivaled, ultra top-class fighters!"])
      ShowText([""])
      ShowText([""])
      CallCommonEvent([159])
      ExitEventProcessing([])
      Empty([])

    Else([])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["\\n<Official>I'm sorry, but that title is currently being prepared. Please come back another time."])
      ShowText([""])
      ShowText([""])
      JumpToLabel(["メニュー"])
      Empty([])

    BranchEnd([])
    Empty([])

  BranchEnd([])
  ConditionalBranch([1, 9, 0, 3, 0])
    ConditionalBranch([1, 1001, 0, 34, 1])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["\\n<Official>You are participating in the Wriggling Scylla Cup!\nIn that case, please proceed to the arena!"])
      ShowText([""])
      ShowText([""])
      ConditionalBranch([1, 1143, 0, 9, 2])
        TransferPlayer([0, 483, 32, 31, 6, 0])
        Empty([])

      BranchEnd([])
      ConditionalBranch([1, 1143, 0, 10, 1])
        ControlVariables([57, 57, 0, 0, 1200])
        TransferPlayer([0, 200, 32, 31, 6, 0])
        Empty([])

      BranchEnd([])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["\\n<Referee>Team Luka has entered!\nWithout further ado, the first match shall begin at once!!"])
      ShowText([""])
      ShowText([""])
      ControlVariables([702, 702, 0, 0, 5])
      CallCommonEvent([160])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["\\n<Referee>Team Luka has won the first match!\nContinuing on, the second match shall now commence!!"])
      ShowText([""])
      ShowText([""])
      ControlVariables([702, 702, 0, 0, 6])
      CallCommonEvent([160])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["\\n<Referee>Team Luka has won the second match!\nAt last, the finals shall now commence!"])
      ShowText([""])
      ShowText([""])
      ControlVariables([702, 702, 0, 0, 7])
      CallCommonEvent([160])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["\\n<Referee>And the winners of the finals are...Team Luka!!\nLet's all give a round of applause for Team Luka!!"])
      ShowText([""])
      ShowText([""])
      ConditionalBranch([1, 714, 0, 2, 0])
        PlaySE(["RPG::SE(@name=\"mon_fanfale2\", @pitch=100, @volume=100)"])
        ShowTextAttributes(["", 0, 0, 2])
        ShowText(["You have mastered the Wriggling Scylla Cup!!"])
        PlaySE(["RPG::SE(@name=\"Item1\", @pitch=100, @volume=80)"])
        ChangeArmor([1385, 0, 0, 1, false])
        ControlVariables([714, 714, 0, 0, 3])
        Empty([])

      Else([])
        PlaySE(["RPG::SE(@name=\"Item1\", @pitch=100, @volume=80)"])
        ChangeItems([37, 0, 0, 1])
        ChangeItems([41, 0, 0, 1])
        ChangeItems([45, 0, 0, 1])
        Empty([])

      BranchEnd([])
      ConditionalBranch([1, 1143, 0, 9, 2])
        TransferPlayer([0, 484, 14, 10, 8, 0])
        Empty([])

      BranchEnd([])
      ConditionalBranch([1, 1143, 0, 10, 1])
        ControlVariables([57, 57, 0, 0, 1199])
        TransferPlayer([0, 199, 14, 10, 8, 0])
        Empty([])

      BranchEnd([])
      Script(["gain_medal(1613)"])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["\\n<Official>Congratulations on winning the Wriggling Scylla Cup championship! You have achieved a glorious record!"])
      ShowText([""])
      ShowText([""])
      CallCommonEvent([159])
      ExitEventProcessing([])
      Empty([])

    Else([])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["\\n<Official>I'm sorry, but that title is currently being prepared. Please come back another time."])
      ShowText([""])
      ShowText([""])
      JumpToLabel(["メニュー"])
      Empty([])

    BranchEnd([])
    Empty([])

  BranchEnd([])
  ConditionalBranch([1, 9, 0, 4, 0])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["\\n<Staff>"])
    ShowText(["You're participating in the Octopus Cup!"])
    ShowText(["Now, please proceed to the arena!"])
    ConditionalBranch([1, 1143, 0, 9, 2])
      TransferPlayer([0, 483, 32, 31, 6, 0])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 1143, 0, 10, 1])
      ControlVariables([57, 57, 0, 0, 1200])
      TransferPlayer([0, 200, 32, 31, 6, 0])
      Empty([])

    BranchEnd([])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["\\n<Judge>"])
    ShowText(["Team Luka has entered!"])
    ShowText(["Now, let's get started with the first match!!"])
    ControlVariables([702, 702, 0, 0, 8])
    ChangeBattleBGM(["RPG::BGM(@name=\"boss_hametu2\", @volume=100, @pitch=100)"])
    CallCommonEvent([160])
    ChangeBattleBGM(["RPG::BGM(@name=\"battle\", @volume=100, @pitch=100)"])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["\\n<Judge>"])
    ShowText(["Team Luka wins the first match!"])
    ShowText(["Continuing on to the second match, let's go!!"])
    ControlVariables([702, 702, 0, 0, 9])
    ChangeBattleBGM(["RPG::BGM(@name=\"boss_hametu2\", @volume=100, @pitch=100)"])
    CallCommonEvent([160])
    ChangeBattleBGM(["RPG::BGM(@name=\"battle\", @volume=100, @pitch=100)"])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["\\n<Judge>"])
    ShowText(["Team Luka wins the second match as well!"])
    ShowText(["Finally, the finals begin!!"])
    ControlVariables([702, 702, 0, 0, 10])
    ChangeBattleBGM(["RPG::BGM(@name=\"boss_hametu2\", @volume=100, @pitch=100)"])
    CallCommonEvent([160])
    ChangeBattleBGM(["RPG::BGM(@name=\"battle\", @volume=100, @pitch=100)"])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["\\n<Judge>"])
    ShowText(["The winner of the finals is... Team Luka!!"])
    ShowText(["Everyone in attendance, give a round of applause for Team Luka!!"])
    ConditionalBranch([1, 714, 0, 3, 0])
      PlaySE(["RPG::SE(@name=\"mon_fanfale2\", @pitch=100, @volume=100)"])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["You have conquered the Octopus Cup!!"])
      PlaySE(["RPG::SE(@name=\"Item1\", @pitch=100, @volume=80)"])
      ChangeItems([4043, 0, 0, 1])
      ControlVariables([714, 714, 0, 0, 4])
      Empty([])

    Else([])
      PlaySE(["RPG::SE(@name=\"Item1\", @pitch=100, @volume=80)"])
      ChangeArmor([4380, 0, 0, 1, false])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 1143, 0, 9, 2])
      TransferPlayer([0, 484, 14, 10, 8, 0])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 1143, 0, 10, 1])
      ControlVariables([57, 57, 0, 0, 1199])
      TransferPlayer([0, 199, 14, 10, 8, 0])
      Empty([])

    BranchEnd([])
    Script(["gain_medal(1614)"])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["\\n<Staff>"])
    ShowText(["Congratulations on winning the Octopus Cup!"])
    ShowText(["This record will be etched in the history of the Coliseum!"])
    CallCommonEvent([159])
    ExitEventProcessing([])
    Empty([])

  BranchEnd([])
  Empty([])
